package com.mallcloud.mall.mall.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mallcloud.mall.mall.api.entity.MallUserPointsBalanceModel;
import com.mallcloud.mall.mall.mapper.MallUserPointsBalanceMapper;
import com.mallcloud.mall.mall.service.MallUserPointsBalanceService;
import org.springframework.stereotype.Service;

/**
 * 用户积分余额
 */
@Service
public class MallUserPointsBalanceServiceImpl extends ServiceImpl<MallUserPointsBalanceMapper, MallUserPointsBalanceModel> implements MallUserPointsBalanceService {

	@Override
	public MallUserPointsBalanceModel getInfo(String cardNo) {
		return this.getOne(new LambdaQueryWrapper<MallUserPointsBalanceModel>()
				.eq(MallUserPointsBalanceModel::getCardNo, cardNo)
		);
	}
}
